<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Sql injection result</title>
</head>
<body>
	<h1>Security Design Patterns</h1>
	<h2>Sample 3 - Validate data based on sufix</h2>
	<hr>
		<div style="padding: 5px;">Validation based on sufix in filter: <bean:write name="sample3Form" property="validateBaseOnSufixInFilter" /></div>
		
		<hr>
		<div style="padding: 5px;"><b>Use bean.write tag</b></div>
		<div style="padding: 5px;">Integer: <bean:write name="sample3Form" property="mySampleInt"/></div>
		<div style="padding: 5px;">Date: <bean:write name="sample3Form" property="mySampleDate"/></div>
		<div style="padding: 5px;">Flag: <bean:write name="sample3Form" property="mySampleFlag"/></div>
		<div style="padding: 5px;">Email: <bean:write name="sample3Form" property="myPersonalEmail"/></div>
		<div style="padding: 5px;">String: <bean:write name="sample3Form" property="mySampleString"/></div>
		<div style="padding: 5px;">Html fragment: <bean:write name="sample3Form" property="myDynamicFragmentHtml"/></div>
		<div style="padding: 5px;">Source Code: <bean:write name="sample3Form" property="mySampleCode"/></div>
		<hr>
		<div style="padding: 5px;"><b>Use JSTL</b></div>
		<div style="padding: 5px;">Integer: ${sample3Form.mySampleInt}</div>
		<div style="padding: 5px;">Date: ${sample3Form.mySampleDate}</div>
		<div style="padding: 5px;">Flag: ${sample3Form.mySampleFlag}</div>
		<div style="padding: 5px;">Email: ${sample3Form.myPersonalEmail}</div>
		<div style="padding: 5px;">String: ${sample3Form.mySampleString}</div>
		<div style="padding: 5px;">Html fragment: ${sample3Form.myDynamicFragmentHtml}</div>
		<div style="padding: 5px;">Source Code: ${sample3Form.mySampleCode}</div>

	<a href="./index.jsp">home</a>
</body>
</html>